package com.myself.common.table

import com.myself.common.entity.BaseEntity
import org.ktorm.schema.*

abstract class BaseTable<E : BaseEntity<E>>(tableName: String) : Table<E>(tableName) {
    val id = int("id").primaryKey().bindTo { it.id }
    val name = varchar("name").bindTo { it.name }
    val updateTime = datetime("update_time").bindTo { it.updateTime }
    val createTime = datetime("create_time").bindTo { it.createTime }
}